#pragma once
#include "Headers.h"
#include "SceneViewForm.h"

namespace OgreUnified{

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Collections::Generic;

	public ref class SceneViewManager
	{
	private:
		List<SceneViewForm^>	mSceneViews;
		int						mSceneViewNumber;
		SceneManager*			mSceneMgr;
		bool					mRendering;
	
	public:
		SceneViewManager();
		~SceneViewManager();
		
		SceneViewForm^	addSceneView();
		void			removeSceneView(SceneViewForm^);
		void			removeAllSceneView();
		void			SceneViewClosed(Object^sender, EventArgs^e);
		static property SceneViewManager^ Instance;
		void			StartRendering();
		void			StopRendering();

	};
}